package com.codingman.antdemo4;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
	@RequestMapping("/")
	public String display(ModelMap model) {
		System.out.println("show hello page");
		
		model.addAttribute("message", "Hello Spring MVC Course!");
		return "hello";
	}
}
